<?php


namespace app\api\validate;

use think\Validate;

class OrderSubscribeValidate extends Validate
{
    protected $rule = [
        'design_id' => 'require',
//        'phone' => 'require|regex:^1[3,4,5,7,8,9][0-9]{9}$',
        'orderdata' => 'require',
//        'time' => 'require',
        'design_service_id' => 'require'
    ];

    protected $message = [
        'design_id.require' => '设计师ID不能为空',
//        'phone.require' => '手机号不能为空',
//        'phone.regex' => '手机号格式不正确',
//        'time.require' => '预约时间不能为空',
        'design_service_id.require' => '设计服务ID不能为空'
    ];
}